import { decodeJson } from "./decode";

export * from "./decode";

export default {
    getCountry: (data: string | string[]) => {
        return decodeJson(data as [string]).country;
    },
    getData: (data: string | string[]) => {
        return decodeJson(data as [string]).data;
    },
};
